package edu.smxy.associationmanagement.services.teacher.impl;

import edu.smxy.associationmanagement.domain.Teacher;
import edu.smxy.associationmanagement.mapper.TeacherMapper;
import edu.smxy.associationmanagement.services.teacher.TeacherService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
/**
* Teacher 服务层接口实现类
* @date  2019/04/19
* @author: : SDH
* @description: 指导教师 服务层接口实现类
*/
@Service("TeacherService")
public class TeacherServiceImpl implements TeacherService {
  @Autowired TeacherMapper teacherMapper;

  @Override
  public int deleteByPrimaryKey(final Integer teacherId) {
    return this.teacherMapper.deleteByPrimaryKey(teacherId);
  }

  @Override
  public int insert(final Teacher record) {
    return this.teacherMapper.insert(record);
  }

  @Override
  public int insertSelective(final Teacher record) {
    return this.teacherMapper.insertSelective(record);
  }

  @Override
  public Teacher selectByPrimaryKey(final Integer teacherId) {
    return this.teacherMapper.selectByPrimaryKey(teacherId);
  }

  @Override
  public int updateByPrimaryKeySelective(final Teacher record) {
    return this.teacherMapper.updateByPrimaryKeySelective(record);
  }

  @Override
  public int updateByPrimaryKey(final Teacher record) {
    return this.teacherMapper.updateByPrimaryKey(record);
  }

  @Override
  public Teacher query(final Teacher teacher) {
    return this.teacherMapper.query(teacher);
  }
}
